<?php
namespace App\Providers;

use Hphp\Support\ServiceProvider;
/**
 *
 */
class RouteServiceProvider extends ServiceProvider
{
    protected $namespace = 'App\Http\Controller';

    public function register()
    {
        echo 'register service provider';
        $this->app->instance('route', $this->app->make('route', [$this->app]));
    }

    public function boot()
    {
        Route::namespaces ($this->namespace)->register($this->app->getBasePath().'/routes/route.php');
    }
}